package com.hqyj.system.service.impl;

import com.hqyj.system.mapper.PurchaseMapper;
import com.hqyj.system.model.Purchase;
import com.hqyj.system.model.User;
import com.hqyj.system.service.PurchaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PurchaseServiceImpl implements PurchaseService {
    @Autowired
    private PurchaseMapper purchaseMapper;

    @Override
    public List<Purchase> queryAllPuchase() {
        return purchaseMapper.queryAllPuchase();
    }

    @Override
    public int addPurchaseByPurchase(Purchase purchase) {
        return purchaseMapper.addPurchaseByPurchase(purchase);
    }
}
